#ifndef __SOCKET_M_H__
#define __SOCKET_M_H__

#include <sys/types.h>
#include <netinet/in.h>
#include <sys/wait.h>
#include <sys/socket.h>
#include <unistd.h>  
#include <arpa/inet.h>    

typedef struct  _ARG  {  
    int connfd;  
    struct sockaddr_in client;   
}ARG;  

int send_msg(int nsockfd,const char* buf, int len,int flags);
void thread_receive();
void* start_receive(void* arg);
void set_connect_info(ARG * arg);
ARG * get_connect_info();
int get_connect_sockfd();
struct sockaddr_in* get_connect_client();

#endif // __SOCKET_M_H__

